<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        var count = 0
        for (var apple = 100; apple >= 0 && apple <= 100; apple--) {
            for (var pear = 0;pear <= 100; pear++) {
                var tao = 100 - apple - pear
                if (pear + apple + tao == 100 && (pear * 2 + apple * 3 + tao * 1 <= 200)) {
                    console.log("苹果" + apple + "个", "梨" + pear + "个", "桃子" + tao + "个");
                    count += 1
                }
            }
        }
        console.log("有" + count + "种可能");
    </script>
</head>

<body>
</body>

</html>